home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / zic.z / zic
Encoding:
Text File  |  2001-04-17  |  13.1 KB  |  331 lines

  1.  
  2.  
  3.  
  4. ZZZZIIIICCCC((((1111MMMM))))                                                                ZZZZIIIICCCC((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      zic - time zone information compiler
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _zzzz_iiii_cccc [ _----_vvvv] [ _----_dddd  _d_i_r_e_c_t_o_r_y ] [ _----_llll _l_o_c_a_l_t_i_m_e ] [ _----_pppp  _p_o_s_i_x_r_u_l_e_s ] [ _----_LLLL
  13.      _l_e_a_p_s_e_c_o_n_d_f_i_l_e_n_a_m_e ] [ _----_ssss ] [ _----_yyyy _c_o_m_m_a_n_d ] [ _f_i_l_e_n_a_m_e ... ]
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      _ZZZZ_iiii_cccc reads text from the file(s) named on the command line and creates the
  17.      time conversion information files specified in this input.  If a _f_i_l_e_n_a_m_e
  18.      is ----, the standard input is read.
  19.  
  20.      These options are available:
  21.  
  22.      ----dddd _d_i_r_e_c_t_o_r_y
  23.           Create time conversion information files in the named directory
  24.           rather than in the standard directory named below.
  25.  
  26.      ----llll _t_i_m_e_z_o_n_e
  27.           Use the given time zone as local time.  _Z_i_c will act as if the input
  28.           contained a link line of the form
  29.  
  30.                Link _t_i_m_e_z_o_n_e       localtime
  31.  
  32.      ----pppp _t_i_m_e_z_o_n_e
  33.           Use the given time zone's rules when handling POSIX-format time zone
  34.           environment variables.  _Z_i_c will act as if the input contained a
  35.           link line of the form
  36.  
  37.                Link _t_i_m_e_z_o_n_e       posixrules
  38.  
  39.      ----LLLL _l_e_a_p_s_e_c_o_n_d_f_i_l_e_n_a_m_e
  40.           Read leap second information from the file with the given name.  If
  41.           this option is not used, no leap second information appears in
  42.           output files.
  43.  
  44.      _----_vvvv   Complain if a year that appears in a data file is outside the range
  45.           of years representable by _t_i_m_e(3) values.
  46.  
  47.      _----_ssss   Limit time values stored in output files to values that are the same
  48.           whether they're taken to be signed or unsigned.  You can use this
  49.           option to generate SVVS-compatible files.
  50.  
  51.      ----yyyy _c_o_m_m_a_n_d
  52.           Use the given _c_o_m_m_a_n_d rather than _yyyy_eeee_aaaa_rrrr_iiii_ssss_tttt_yyyy_pppp_eeee when checking year
  53.           types (see below).
  54.  
  55.      Input lines are made up of fields.  Fields are separated from one another
  56.      by any number of white space characters.  Leading and trailing white
  57.      space on input lines is ignored.  An unquoted sharp character (#) in the
  58.      input introduces a comment which extends to the end of the line the sharp
  59.      character appears on.  White space characters and sharp characters may be
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ZZZZIIIICCCC((((1111MMMM))))                                                                ZZZZIIIICCCC((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      enclosed in double quotes (") if they're to be used as part of a field.
  75.      Any line that is blank (after comment stripping) is ignored.  Non-blank
  76.      lines are expected to be of one of three types:  rule lines, zone lines,
  77.      and link lines.
  78.  
  79.      A rule line has the form
  80.  
  81.           Rule  NAME  FROM  TO    TYPE  IN   ON       AT    SAVE  LETTER/S
  82.  
  83.      For example:
  84.  
  85.           Rule  US    1967  1973  -     Apr  lastSun  2:00  1:00  D
  86.  
  87.      The fields that make up a rule line are:
  88.  
  89.      _NNNN_AAAA_MMMM_EEEE    Gives the (arbitrary) name of the set of rules this rule is part
  90.              of.
  91.  
  92.      _FFFF_RRRR_OOOO_MMMM    Gives the first year in which the rule applies.  Any integer year
  93.              can be supplied; the Gregorian calendar is assumed.  The word
  94.              _mmmm_iiii_nnnn_iiii_mmmm_uuuu_mmmm (or an abbreviation) means the minimum year representable
  95.              as an integer.  The word _mmmm_aaaa_xxxx_iiii_mmmm_uuuu_mmmm (or an abbreviation) means the
  96.              maximum year representable as an integer.  Rules can describe
  97.              times that are not representable as time values, with the
  98.              unrepresentable times ignored; this allows rules to be portable
  99.              among hosts with differing time value types.
  100.  
  101.      _TTTT_OOOO      Gives the final year in which the rule applies.  In addition to
  102.              _mmmm_iiii_nnnn_iiii_mmmm_uuuu_mmmm and _mmmm_aaaa_xxxx_iiii_mmmm_uuuu_mmmm (as above), the word _oooo_nnnn_llll_yyyy (or an
  103.              abbreviation) may be used to repeat the value of the _FFFF_RRRR_OOOO_MMMM field.
  104.  
  105.      _TTTT_YYYY_PPPP_EEEE    Gives the type of year in which the rule applies.  If _TTTT_YYYY_PPPP_EEEE is _----
  106.              then the rule applies in all years between _FFFF_RRRR_OOOO_MMMM and _TTTT_OOOO inclusive.
  107.              If _TTTT_YYYY_PPPP_EEEE is something else, then _z_i_c executes the command
  108.                   yyyyeeeeaaaarrrriiiissssttttyyyyppppeeee _y_e_a_r _t_y_p_e
  109.              to check the type of a year:  an exit status of zero is taken to
  110.              mean that the year is of the given type; an exit status of one is
  111.              taken to mean that the year is not of the given type.
  112.  
  113.      _IIII_NNNN      Names the month in which the rule takes effect.  Month names may
  114.              be abbreviated.
  115.  
  116.      _OOOO_NNNN      Gives the day on which the rule takes effect.  Recognized forms
  117.              include:
  118.  
  119.                   5        the fifth of the month
  120.                   lastSun  the last Sunday in the month
  121.                   lastMon  the last Monday in the month
  122.                   Sun>=8   first Sunday on or after the eighth
  123.                   Sun<=25  last Sunday on or before the 25th
  124.  
  125.              Names of days of the week may be abbreviated or spelled out in
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ZZZZIIIICCCC((((1111MMMM))))                                                                ZZZZIIIICCCC((((1111MMMM))))
  137.  
  138.  
  139.  
  140.              full.  Note that there must be no spaces within the _OOOO_NNNN field.
  141.  
  142.      _AAAA_TTTT      Gives the time of day at which the rule takes effect.  Recognized
  143.              forms include:
  144.  
  145.                   2        time in hours
  146.                   2:00     time in hours and minutes
  147.                   15:00    24-hour format time (for times after noon)
  148.                   1:28:14  time in hours, minutes, and seconds
  149.  
  150.              Any of these forms may be followed by the letter _wwww if the given
  151.              time is local "wall clock" time, _ssss if the given time is local
  152.              "standard" time, or _uuuu (or _gggg or zzzz) if the given time is universal
  153.              time; in the absence of an indicator, wall clock time is assumed.
  154.  
  155.      _SSSS_AAAA_VVVV_EEEE    Gives the amount of time to be added to local standard time when
  156.              the rule is in effect.  This field has the same format as the _AAAA_TTTT
  157.              field (although, of course, the _wwww and _ssss suffixes are not used).
  158.  
  159.      _LLLL_EEEE_TTTT_TTTT_EEEE_RRRR_////_SSSS
  160.              Gives the "variable part" (for example, the "S" or "D" in "EST"
  161.              or "EDT") of time zone abbreviations to be used when this rule is
  162.              in effect.  If this field is ----, the variable part is null.
  163.  
  164.      A zone line has the form
  165.  
  166.           Zone  NAME                GMTOFF  RULES/SAVE  FORMAT  [UNTIL]
  167.  
  168.      For example:
  169.  
  170.           Zone  Australia/Adelaide  9:30    Aus         CST     1971 Oct 31 2:00
  171.  
  172.      The fields that make up a zone line are:
  173.  
  174.      _NNNN_AAAA_MMMM_EEEE  The name of the time zone.  This is the name used in creating the
  175.            time conversion information file for the zone.
  176.  
  177.      _GGGG_MMMM_TTTT_OOOO_FFFF_FFFF
  178.            The amount of time to add to GMT to get standard time in this zone.
  179.            This field has the same format as the _AAAA_TTTT and _SSSS_AAAA_VVVV_EEEE fields of rule
  180.            lines; begin the field with a minus sign if time must be subtracted
  181.            from GMT.
  182.  
  183.      _RRRR_UUUU_LLLL_EEEE_SSSS_////_SSSS_AAAA_VVVV_EEEE
  184.            The name of the rule(s) that apply in the time zone or,
  185.            alternately, an amount of time to add to local standard time.  If
  186.            this field is _---- then standard time always applies in the time zone.
  187.  
  188.      _FFFF_OOOO_RRRR_MMMM_AAAA_TTTT
  189.            The format for time zone abbreviations in this time zone.  The pair
  190.            of characters _%%%%_ssss is used to show where the "variable part" of the
  191.            time zone abbreviation goes.  Alternately, a slash (/) separates
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. ZZZZIIIICCCC((((1111MMMM))))                                                                ZZZZIIIICCCC((((1111MMMM))))
  203.  
  204.  
  205.  
  206.            standard and daylight abbreviations.
  207.  
  208.      _UUUU_NNNN_TTTT_IIII_LLLL The time at which the GMT offset or the rule(s) change for a
  209.            location.  It is specified as a year, a month, a day, and a time of
  210.            day.  If this is specified, the time zone information is generated
  211.            from the given GMT offset and rule change until the time specified.
  212.            The month, day, and time of day have the same format as the IN, ON,
  213.            and AT columns of a rule; trailing columns can be omitted, and
  214.            default to the earliest possible value for the missing columns.
  215.  
  216.            The next line must be a "continuation" line; this has the same form
  217.            as a zone line except that the string "Zone" and the name are
  218.            omitted, as the continuation line will place information starting
  219.            at the time specified as the _UUUU_NNNN_TTTT_IIII_LLLL field in the previous line in
  220.            the file used by the previous line.  Continuation lines may contain
  221.            an _UUUU_NNNN_TTTT_IIII_LLLL field, just as zone lines do, indicating that the next
  222.            line is a further continuation.
  223.  
  224.      A link line has the form
  225.  
  226.           Link  LINK-FROM        LINK-TO
  227.  
  228.      For example:
  229.  
  230.           Link  Europe/Istanbul  Asia/Istanbul
  231.  
  232.      The _LLLL_IIII_NNNN_KKKK_----_FFFF_RRRR_OOOO_MMMM field should appear as the _NNNN_AAAA_MMMM_EEEE field in some zone line;
  233.      the _LLLL_IIII_NNNN_KKKK_----_TTTT_OOOO field is used as an alternate name for that zone.
  234.  
  235.      Except for continuation lines, lines may appear in any order in the
  236.      input.
  237.  
  238.      Lines in the file that describes leap seconds have the following form:
  239.  
  240.           Leap  YEAR  MONTH  DAY  HH:MM:SS  CORR  R/S
  241.  
  242.      For example:
  243.  
  244.           Leap  1974  Dec    31   23:59:60  +     S
  245.  
  246.      The YYYYEEEEAAAARRRR, MMMMOOOONNNNTTTTHHHH, DDDDAAAAYYYY, and _HHHH_HHHH_::::_MMMM_MMMM_::::_SSSS_SSSS fields tell when the leap second
  247.      happened.  The _CCCC_OOOO_RRRR_RRRR field should be "+" if a second was added or "-" if a
  248.      second was skipped.  The _RRRR_////_SSSS field should be (an abbreviation of)
  249.      "Stationary" if the leap second time given by the other fields should be
  250.      interpreted as GMT or (an abbreviation of) "Rolling" if the leap second
  251.      time given by the other fields should be interpreted as local wall clock
  252.      time.
  253.  
  254. NNNNOOOOTTTTEEEE
  255.      For areas with more than two types of local time, you may need to use
  256.      local standard time in the _AAAA_TTTT field of the earliest transition time's
  257.      rule to ensure that the earliest transition time recorded in the compiled
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. ZZZZIIIICCCC((((1111MMMM))))                                                                ZZZZIIIICCCC((((1111MMMM))))
  269.  
  270.  
  271.  
  272.      file is correct.
  273.  
  274. FFFFIIIILLLLEEEE
  275.      /usr/lib/locale/TZ  standard directory used for created files
  276.  
  277. AAAAUUUUTTTTHHHHOOOORRRR
  278.      This version is based on the public domain code written by Arthur David
  279.      Olson.
  280.  
  281. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  282.      zdump(1M), ctime(3).
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.